﻿using System.Diagnostics;
using System.Reflection;
using System.Windows.Navigation;

namespace FB2er.View
{
    public partial class About
    {
        public About()
        {
            InitializeComponent();
            var fv = (AssemblyFileVersionAttribute) Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), false)[0];
            tbVersion.Text = string.Format("Version {0}", fv.Version);
        }

        private void ExecuteClose(object sender, System.Windows.RoutedEventArgs e)
        {
            DialogResult = true;
        }

        private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
        {
            Process.Start(e.Uri.ToString());
        }
    }
}
